package com.rabincorp.facepoll.dto;

import java.util.Date;
import java.util.List;

/**
 *
 * @author isakrabin
 */
public class PollQuestionDTO {

    private String title;
    private String question;
    private String answer;
    private List<String> options;
    private boolean active;
    private int type;
    private Date startDate;
    private Date endDate;

    public PollQuestionDTO() {
    }

    
    public PollQuestionDTO(String title,String question, List<String> options, boolean active, int type, Date startDate, Date endDate) {
        this.title = title;
        this.question = question;
        this.options = options;
        this.active = active;
        this.type = type;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    

    public String getQuestion() {
        return question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
    
    public void setQuestion(String question) {
        this.question = question;
    }

    public void addOption(String option) {
        options.add(option);
    }
    
    public List<String> getOptions() {
        return options;
    }

    public void setOptions(List<String> options) {
        this.options = options;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }



    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
    
    
    
}
